#include "httpserver.hpp"

void Usage()
{
    cout<<"Usage:"<<endl<<"./sever severport"<<endl<<endl;
}

int main(int argc, char*args[])
{
    if(argc!=2)
    {
        Usage();
        exit(USAGE_ERR);
    }
    uint16_t port = atoi(args[1]);
    sever sv(port);
    sv.init();
    sv.start();
    
    return 0;
}